#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>

#define N 10000

int num[N][N];
int copy_1[N][N];
int copy_2[N][N];

void test()
{
	for (int i = 0; i < N; i++)
		for (int j = 0; j < N; j++)
			num[i][j] = 1;

	int begin1 = clock();
	for (int i = 0; i < N; i++)
		for (int j = 0; j < N; j++)
			copy_1[i][j] = num[i][j];
	int end1 = clock();
	printf("row->col: %d\n", end1 - begin1);

	int begin2 = clock();
	for (int i = 0; i < N; i++)
		for (int j = 0; j < N; j++)
			copy_2[j][i] = num[j][i];
	int end2 = clock();
	printf("col->row: %d\n", end2 - begin1);
}

int main()
{
	test();

	return 0;
}